<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'ELForm.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body> 
    <strong>EL隐含对象param、paramValues</strong><br>
    <form method="post" action="ELParam.jsp" name="form1">
    <p>&nbsp;username:<input type="text" name="username"></p>
    <p>&nbsp;password:<input type="password" name="password"></p>
    <p>&nbsp;&nbsp; gender:<select name="gender">
    <option selected value="男">男</option>
    <option value="女">女</option>
    </select>
    </p><p>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
    age:<input type="text" name="age"></p>
    <p>habit：
    <input type="checkbox" checked="checked" value="看书" name="habit">看书
    <input type="checkbox" value="玩游戏" name="habit">玩游戏
    <input type="checkbox" value="旅游" name="habit">旅游
    <input type="checkbox" value="看电视" name="habit">看电视
    <input type="checkbox" value="听音乐" name="habit">听音乐</p>
    <p><input type="submit" value="传送" name="button1">
    <input type="reset" value="清除" name="button2">  
    </p>
    </form>
    
    </body>
</html>